﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="galleryAlbums.aspx.vb" Inherits="Web_2._0_BMW___X6_Experts_Web_Application.galleryAlbums" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style3
        {
            font-size: x-large;
        text-decoration: underline;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <span class="style3"><strong>My Gallery Album Uploads</strong></span>
    <br />
    <br />
   <div class = "galleryInfo">
   
   
       Here, you will find a collection of all your uploaded photos which you have 
       submitted in the Gallery.<br />
       <br />
       Click on a photo to view its comments and tags.<br />
       <br />
       <br />
       <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1" 
           GroupItemCount="3">
           <AlternatingItemTemplate>
               <td runat="server" style="">
                    <a href="imageAddComments.aspx?id=<%# Eval("ImageID") %>"><asp:Image ID="Image1" runat="server" Height="200px" ImageUrl='<%# Eval("ImageLink") %>' Width="300px" /></a>
                                   </td>
           </AlternatingItemTemplate>
           <EditItemTemplate>
               <td runat="server" style="">

                    <a href="imageAddComments.aspx?id=<%# Eval("ImageID") %>"><asp:Image ID="Image1" runat="server" Height="200px" ImageUrl='<%# Eval("ImageLink") %>' Width="300px" /></a>

                   <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                       Text="Update" />
                   <br />
                   <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                       Text="Cancel" />
                   <br />
               </td>
           </EditItemTemplate>
           <EmptyDataTemplate>
               <table runat="server" style="">
                   <tr>
                       <td>
                           No data was returned.</td>
                   </tr>
               </table>
           </EmptyDataTemplate>
           <EmptyItemTemplate>
<td runat="server" />
           </EmptyItemTemplate>
           <GroupTemplate>
               <tr ID="itemPlaceholderContainer" runat="server">
                   <td ID="itemPlaceholder" runat="server">
                   </td>
               </tr>
           </GroupTemplate>
           <InsertItemTemplate>
               <td runat="server" style="">

                    <a href="imageAddComments.aspx?id=<%# Eval("ImageID") %>"><asp:Image ID="Image1" runat="server" Height="200px" ImageUrl='<%# Eval("ImageLink") %>' Width="300px" /></a>
                   <br />
                   <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                       Text="Insert" />
                   <br />
                   <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                       Text="Clear" />
                   <br />
               </td>
           </InsertItemTemplate>
           <ItemTemplate>
               <td runat="server" style="">

                    <a href="imageAddComments.aspx?id=<%# Eval("ImageID") %>"><asp:Image ID="Image1" runat="server" Height="200px" ImageUrl='<%# Eval("ImageLink") %>' Width="300px" /></a>
               </td>
           </ItemTemplate>
           <LayoutTemplate>
               <table runat="server">
                   <tr runat="server">
                       <td runat="server">
                           <table ID="groupPlaceholderContainer" runat="server" border="0" style="">
                               <tr ID="groupPlaceholder" runat="server">
                               </tr>
                           </table>
                       </td>
                   </tr>
                   <tr runat="server">
                       <td runat="server" style="">
                       <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                            <Fields>
                                <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                    ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                <asp:NumericPagerField />
                                <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                                    ShowNextPageButton="False" ShowPreviousPageButton="False" />
                            </Fields>
                        </asp:DataPager>
                       </td>
                   </tr>
               </table>
           </LayoutTemplate>
           <SelectedItemTemplate>
               <td runat="server" style="">

                    <a href="imageAddComments.aspx?id=<%# Eval("ImageID") %>"><asp:Image ID="Image1" runat="server" Height="200px" ImageUrl='<%# Eval("ImageLink") %>' Width="300px" /></a>
               </td>
           </SelectedItemTemplate>
       </asp:ListView>
       <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
           ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
           ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
           
           SelectCommand="SELECT Images.ImageID, Images.ImageLink, aspnet_Users.UserName FROM (Images INNER JOIN aspnet_Users ON Images.UserIDFK = aspnet_Users.UserId) WHERE (aspnet_Users.UserName = ?) ORDER BY Images.ImageID DESC">
           <SelectParameters>
               <asp:QueryStringParameter Name="?" QueryStringField="UserID" />
           </SelectParameters>
       </asp:SqlDataSource>
       <br />
       <br />
       <br />
   
   
   </div>
</asp:Content>
